﻿#region Copyrights Notice
//©2009 Microsoft Corporation.  All rights reserved.
//This portal design is based on the design and some code from DropThings.com which is also licensed under an MS-PL license.
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Microsoft.InformationSecurity.RiskManagement.ISRMWeb.UserControls
{
    public partial class WebletsLayout : System.Web.UI.UserControl
    {
        private string[] Panels = new string[] { "LeftSingleColPanel", "MiddleSingleColPanel", "RightSingleColPanel" };

        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void UpdateWebletPanel(int columnNo)
        {

            SingleColPanel singleColPanel = this.FindControl(Panels[columnNo]) as SingleColPanel;
            singleColPanel.UpdatePanel();



        }
        public Panel[] GetPanels()
        {
            Panel[] InnerPanels = new Panel[3];
            for (int i=0; i<3;i++)
            {
                SingleColPanel singleColPanel = this.FindControl(Panels[i]) as SingleColPanel;
                Panel p = singleColPanel.GetWebletPanel();
                InnerPanels[i] = p;

            }
            return InnerPanels;
        }

    }
}